package org.esk.dablog.service;

import org.esk.dablog.model.Author;
import org.esk.dablog.model.entries.Ride;

import java.util.List;

/**
 * This interface provides methods to check user's security
 * User: jc
 * Date: 01.12.2006
 * Time: 16:05:39
 * $Id:$
 */
public interface UserManager {


    /**
     * finds Author instance by his user name
     * @param username
     * @return
     */
     Author getAuthorByUsername(String username);

    /**
     * Saves author instance
     * @param a
     */
    long saveAuthor(Author a);

    /**
     * List last registered users
     * @param usersCount
     * @return
     */
    List listLastRegisteredUsers(int usersCount);

    /**
     * returns Author by its id
     * @param id
     * @return
     */
    Author getAuthorById(long id);
}
